cmake_minimum_required(VERSION 3.10)
project(calendar C)

set(CMAKE_C_STANDARD 99)

# 添加所有源文件
set(SOURCES
    main.c
    calendar.c
    lunar.c
    festival.c
)

add_executable(calendar ${SOURCES})

# Windows下需要链接windows库
if (WIN32)
    target_link_libraries(calendar PRIVATE user32)
endif()
